package com.yonyou.crm.sys.dataright.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.yonyou.crm.sys.dataright.entity.RightConfig;
import com.yonyou.crm.sys.dataright.entity.RightTypeVO;
import com.yonyou.crm.sys.dataright.entity.SuperVO;
import com.yonyou.crm.sys.dataright.rmitf.IRightRmService;
import com.yonyou.crm.sys.dataright.service.RightServiceImpl;

public class RightRmServiceImpl implements IRightRmService{

	@Autowired
	RightServiceImpl rightService;
	
	@Override
	public String getRightSql(Long roleId, Long objId, Long actionId) {
		return rightService.getRightSql(roleId, objId, actionId);
	}

	@Override
	public boolean hasRight(Long roleId, Long objId, Long actionId, Long id) {
		return rightService.hasRight(roleId, objId, actionId, id);
	}

	@Override
	public boolean hasRight(Long roleId, Long objId, Long actionId, SuperVO vo) {
		return rightService.hasRight(roleId, objId, actionId, vo);
	}

	@Override
	public Long[] filterWithRight(Long roleId, Long objId, Long actionId,
			Long[] ids) {
		return rightService.filterWithRight(roleId, objId, actionId, ids);
	}

	@Override
	public SuperVO[] filterWithRight(Long roleId, Long objId, Long actionId,
			SuperVO[] vos) {
		return rightService.filterWithRight(roleId, objId, actionId, vos);
	}

	@Override
	public RightConfig getRightConfig(Long roleId, Long objId, Long actionId) {
		return rightService.getRightConfig(roleId, objId, actionId);
	}

	@Override
	public void assign(Long roleId,String typeId) {
		
		rightService.assign(roleId,typeId);

	}

	@Override
	public List<RightTypeVO> right(Long roleId) {
		return rightService.right(roleId);
	}

}
